<%-- 
    Document   : guest
    Created on : 24/05/2012, 10:56:08 AM
    Author     : Conrrad Martínez
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="com.mycompany.mavenproject1.modelo.*"%>
<jsp:useBean id="guestDao" type="GuestDao" scope="request" />
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Hola mundo!</h1>
        <form method="POST" action="guest.html">
            Name: <input type="text" name="name" />
            <input type="submit" value="Add" />
        </form>
 
        <hr><ol> 
        <% for (Guest guest : guestDao.getAllGuests()) { %>
            <li> <%= guest %> </li>
        <% } %>
        </ol><hr>
 
        <iframe src="http://www.objectdb.com/pw.html?spring-netbeans"
            frameborder="0" scrolling="no" width="100%" height="30"> </iframe>
    </body>
</html>
